import checkApp from './permission-app.js';
import checkWx from './permission-wx.js';

export default (permissionID, callback) => {
	if (!callback) callback = () => {};
	// #ifdef MP-WEIXIN
	checkWx(permissionID, callback);
	// #endif
	// #ifdef APP-VUE
	checkApp(permissionID, callback);
	// #endif
}